package com.ky.pro.java.sharding.ecommerce.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单信息表
 * </p>
 *
 * @author Kevin Dummy
 * @since 2021-12-18
 */
@Getter
@Setter
@TableName("t_com_order")
@ApiModel(value = "ComOrder对象", description = "订单信息表")
@Builder
public class ComOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("订单ID")
    private Long id;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("订单号")
    private Long orderNo;

    @ApiModelProperty("订单状态，1 - 待支付；2 - 已支付；3 - 已完成； 4 - 已取消")
    private Integer orderStatus;

    @ApiModelProperty("订单备注")
    private String orderRemark;

    @ApiModelProperty("删除标志")
    private Boolean delStatus;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("版本号")
    private Integer version;


}
